
import {AxiosRequestConfig, AxiosResponse} from "axios";
import request from "@/utils/request";
import {ResumeTagType} from "@/api/tag";

export interface ResumeArticleType{
    id: number,
    title: string,
    titleImage: string,
    description: string,
    createTime: string,
    updateTime: string,
    categoryId: number,
    tagList: string[],
    content: string
}

export function getArticleListByTagList(data): Promise<AxiosResponse<ResumeArticleType[]>> {
    return request({
        url: '/resume-web/article/byTagList',
        method: 'post',
        data: data
    })
}
